import { createBrowserRouter } from "react-router-dom";

import App from '../App'
import Home from '../pages/home/Index'
import Index from '../pages/index/Index'
import AA from '../pages/home/aa/Index'
export const  tworouter=[
    {
        path:'/home',
        element:<Home></Home>,
        title:'首页',
        children:[
            {
                path:'/home/aa',
                element:<AA></AA>,
                title:'三级路由'
            }
        ],
       
       
    },

    {
path:'/index',
element:<Index></Index>,
title:'订单',

    }
]

const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:tworouter
    }
])

export default router